package com.chint.springboot.dao;

import com.chint.springboot.model.pojo.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface CustomerDao extends JpaRepository<Customer, String>, JpaSpecificationExecutor<Customer> {

    @Query("select c from Customer c where c.sfId=?1")
    Customer findByName(String username);
}
